Wavefront Geometry Export Converter

The Wavefront OBJ geometry export converter writes out the scene database as a series of indexed polygons (faces and their associated indices) along with optional normal and texture data (if its exists within the database). A Wavefront material definition file (.mtl) can also be exported.

The exported .OBJ file will be compliant with the Wavefront .OBJ file format version 2.11 which defines polygonal geometry. Higher order primitives, such as NURB and bicubic patches will be converted into convex polygons before begin output.

Any concave polygons or polygons with holes will be triangulated before being output to the .OBJ file.

Polygons that belong to the same object within the converter's internal database will output as a single unique group within the .OBJ file with the group's name set equal to the internal object name; the group name is specified with the "g" command in the file.

No hierarchy information is output since the .OBJ file format has no methods to describing hierarchy; each sub-object of a hierarchy will nonetheless be exported as a unique group whose name's match the original object names in the internal database hierarchy.